﻿namespace Core.Domain
{
	public class RegistrationResult
	{
		public Account Account
		{
			get;
			private set;
		}

		public RegistrationResultCode Code
		{
			get;
			private set;
		}
		
		public static RegistrationResult SuccessfullResult(Account account)
		{
			return new RegistrationResult
			       	{
						Code = RegistrationResultCode.Success,
						Account = account
			       	};
		}

		public static RegistrationResult FailedResult(RegistrationResultCode code)
		{
			return new RegistrationResult
			       	{			       		
						Code = code
			       	};
		}
	}
}
